
// -----------------------------------------------------------------------------

#include "stdafx.h"
#include "Win32.IO.TransactedFile.h"

namespace Kif
{
namespace Win32
{
namespace IO
{
namespace Ktm
{

// -----------------------------------------------------------------------------

bool Transaction::BeginTransaction()
{
   handle = CreateTransaction(
      NULL,  // LPSECURITY_ATTRIBUTES (specify default security)
      NULL,  // LPGUID UOW
      0,     // DWORD  CreateOptions
      0,     // DWORD  IsolationLevel
      0,     // DWORD  IsolationFlags
      0,     // DWORD  Timeout
      NULL); // LPWSTR Description

   return(handle != INVALID_HANDLE_VALUE);
}  // end of BeginTransaction

// -----------------------------------------------------------------------------

}  // end of Kif::Win32::IO::Ktm
}  // end of Kif::Win32::IO
}  // end of Kif::Win32
}  // end of Kif

